<?php
class Answer_Component_Block_Info extends Phpfox_Component {
    public function process() {
        $aLevels = Phpfox::getService('answer.level')->getAllInfo();
        $this->template()->assign(array(
                'sHeader' => Phpfox::getPhrase('answer.about_points_and_levels'),
                'sAskAQuestion' => Phpfox::getParam('answer.ask_a_question')." ".Phpfox::getPhrase('answer.points_when_you_asking_a_question'),
                'sAnswerAQuestion' => Phpfox::getParam('answer.answer_question')." ".Phpfox::getPhrase('answer.points_when_you_answering_a_question'),
                'sVoteAQuestion' => Phpfox::getParam('answer.vote_answer')." ".Phpfox::getPhrase('answer.points_when_you_voting_a_question'),
                'sCorrectAnswer' => Phpfox::getParam('answer.answer_correct')." ".Phpfox::getPhrase('answer.points_when_your_answer_is_correct'),
                'aLevels' => $aLevels,
                'iCount' => count($aLevels)
            )
        );
        return 'block';

    }
}